<form class="layui-form layui-card">
    <div class="layui-card-body" style="padding-top: 20px;height: 100%" id="media">
        <div class="layui-form-item">
            <div class="layui-input-block">
                已报名学生 {$student_count}人
                <table class="layui-table">
                    {foreach $student as $k=>$v}
                    {if $v['realname'] neq ''}
                    <tr>
                        <td>{$v['realname']}({$v['grade_name']}{$v['class_name']})</td>
                        <td>(手机:{$v['phone']})</td>
                        <td>(学生号:{$v['student_no']})</td>
                    </tr>
                    {else}
                    <tr><td>用户ID{$v['id']}未实名</td></tr>
                    {/if}
                    {/foreach}
                </table>
            </div>
        </div>
        <input type='hidden' value='{$vo.id}' name='id'>
        <!--<div class="layui-form-item text-center">-->
            <!--<button type="button" data-export-list class="layui-btn layui-btn-primary"><i class="layui-icon layui-icon-export"></i>导 出</button>-->
        <!--</div>-->
    </div>
</form>
{block name="script"}
<script>
    window.form.render();
    $('[data-export-list]').on('click', function () {
        window.location.href = '{:url("@")}?s={:url("export_attendance",false,false)}&' + $(this).parents('form').serialize()
    });
</script>
{/block}